package com.nchu.ft.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@TableName(value = "male_member")
public class MaleMember {
    /**
     * 人员ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 所属分支ID
     */
    @TableField(value = "branch_id")
    private Integer branchId;

    /**
     * 父亲ID
     */
    @TableField(value = "father_id")
    private Integer fatherId;

    /**
     * 母亲ID
     */
    @TableField(value = "mother_id")
    private Integer motherId;

    /**
     * 下一个兄弟ID（长幼顺序）
     */
    @TableField(value = "next_brother_id")
    private Integer nextBrotherId;

    /**
     * 姓名
     */
    @TableField(value = "full_name")
    private String fullName;

    /**
     * 世序（第几辈）
     */
    @TableField(value = "generation")
    private Integer generation;

    /**
     * 别名/行名
     */
    @TableField(value = "`alias`")
    private String alias;

    /**
     * 生辰
     */
    @TableField(value = "birth_date")
    private LocalDate birthDate;

    /**
     * 卒殁
     */
    @TableField(value = "death_date")
    private LocalDate deathDate;

    /**
     * 传记
     */
    @TableField(value = "biography")
    private String biography;

    /**
     * 人才录
     */
    @TableField(value = "talent_record")
    private String talentRecord;

    /**
     * 学历
     */
    @TableField(value = "education")
    private String education;

    /**
     * 备注
     */
    @TableField(value = "notes")
    private String notes;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    public static final String COL_ID = "id";

    public static final String COL_BRANCH_ID = "branch_id";

    public static final String COL_FATHER_ID = "father_id";

    public static final String COL_MOTHER_ID = "mother_id";

    public static final String COL_NEXT_BROTHER_ID = "next_brother_id";

    public static final String COL_FULL_NAME = "full_name";

    public static final String COL_GENERATION = "generation";

    public static final String COL_ALIAS = "alias";

    public static final String COL_BIRTH_DATE = "birth_date";

    public static final String COL_DEATH_DATE = "death_date";

    public static final String COL_BIOGRAPHY = "biography";

    public static final String COL_TALENT_RECORD = "talent_record";

    public static final String COL_EDUCATION = "education";

    public static final String COL_NOTES = "notes";

    public static final String COL_CREATE_TIME = "create_time";
}